package com.ymttest.database.sqlwapper;

import java.util.List;

import com.ymt.database.SqlManager;
import com.ymttest.database.model.YmtSubCatalogs;

public class YmtSubCatalogsWapper {
	SqlManager manage;

	public YmtSubCatalogsWapper() {
		manage = new SqlManager("intpro");
	}
	
	
	
	public YmtSubCatalogs selectByCatalogId(String catalogId) throws InterruptedException{
		List ret = manage.getSelectResults("com.ymttest.database.mapping.YmtSubCatalogsMapper.selectByCatalogId", catalogId);
		if (ret.size()>0){
			return (YmtSubCatalogs)ret .get(0);
		}else{
			return null;
		}
		
	}
	
	
	public List<YmtSubCatalogs> selectListByCatalogId(String catalogId) throws InterruptedException{
		List ret = manage.getSelectResults("com.ymttest.database.mapping.YmtSubCatalogsMapper.selectByCatalogId", catalogId);
		return (List<YmtSubCatalogs>)ret;
		
	}
	
	
	
	
	public static void main(String[] args) throws InterruptedException {
		//System.out.println(new YmtProductDescExtraWapper().selectByTemplateId(1).getPicUrls());
		System.out.println(new YmtSubCatalogsWapper().selectByCatalogId("60199adc-9d70-439d-81c6-942be764a087"));
	}
}
